#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    int n = 1234;
    int ren = 0;
    while (n)
    {
        ren = ren * 10 + n % 10;
        n /= 10;
    }
    printf("%d\n", ren);
}
